// 获取DOM元素 <img class="img"/>
const imgEl = document.querySelector('.img') as HTMLImageElement
console.log(imgEl.src, imgEl.width, imgEl.height)

// 只能回去更具体或不太具体(any, unknown)的类型
// const name = 'coderwhy' as number
const name = ('coderwhy' as unknown) as number
console.log(name)

export {}